package com.qf.topic_exchange;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 千峰教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Component
@RabbitListener(queues = "topic_queue1")
public class TopicListener1 {

    @RabbitHandler
    public void onMessage(String msg){
        System.out.println("主体模式 ===== 1："+msg);
    }
}